home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kcalendarsystemfactory.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-10-10  |  1.9 KB  |  66 lines

  1. /*
  2.    Copyright (c) 2002 Carlos Moro <cfmoro@correo.uniovi.es>
  3.    Copyright (c) 2002 Hans Petter Bieker <bieker@kde.org>
  4.  
  5.    This library is free software; you can redistribute it and/or
  6.    modify it under the terms of the GNU Library General Public
  7.    License as published by the Free Software Foundation; either
  8.    version 2 of the License, or (at your option) any later version.
  9.  
  10.    This library is distributed in the hope that it will be useful,
  11.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.    Library General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU Library General Public License
  16.    along with this library; see the file COPYING.LIB.  If not, write to
  17.    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18.    Boston, MA 02110-1301, USA.
  19. */
  20.  
  21. #ifndef KCALENDARSYSTEMFACTORY_H
  22. #define KCALENDARSYSTEMFACTORY_H
  23.  
  24. #include <qstring.h>
  25. #include <qstringlist.h>
  26. #include "kdelibs_export.h"
  27.  
  28. class KCalendarSystem;
  29. class KLocale;
  30.  
  31. /**
  32.  * Factory class for calendar types
  33.  * @author Carlos Moro <cfmoro@correo.uniovi.es>
  34.  * @since 3.2
  35.  */
  36. class KDECORE_EXPORT KCalendarSystemFactory
  37. {
  38. public:
  39.   KCalendarSystemFactory ();
  40.   ~KCalendarSystemFactory ();
  41.  
  42.   /**
  43.    * Gets specific calendar type number of days in previous month for a
  44.    * given date
  45.    *
  46.    * @param calType string identification of the specific calendar type
  47.    * to be constructed
  48.    * @param locale Locale used for translations. Use the global locale when
  49.    * 0 is specified.
  50.    * @return a KCalendarSystem object
  51.    */
  52.   static KCalendarSystem *create (const QString & calType = QString::fromLatin1("gregorian"),
  53.                                   const KLocale * locale = 0);
  54.  
  55.   /**
  56.    * Gets list of names of supported calendar systems
  57.    *
  58.    * @return A QStringList object
  59.    */
  60.   static QStringList calendarSystems();
  61.  
  62. private:
  63. };
  64.  
  65. #endif
  66.